home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCounter.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  114 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCounter.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCounter_h__
  6. #define __gen_nsIDOMCounter_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCounter */
  19. #define NS_IDOMCOUNTER_IID_STR "31adb439-0055-402d-9b1d-d5ca94f3f55b"
  20.  
  21. #define NS_IDOMCOUNTER_IID \
  22.   {0x31adb439, 0x0055, 0x402d, \
  23.     { 0x9b, 0x1d, 0xd5, 0xca, 0x94, 0xf3, 0xf5, 0x5b }}
  24.  
  25. class NS_NO_VTABLE nsIDOMCounter : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCOUNTER_IID)
  29.  
  30.   /* readonly attribute DOMString identifier; */
  31.   NS_IMETHOD GetIdentifier(nsAString & aIdentifier) = 0;
  32.  
  33.   /* readonly attribute DOMString listStyle; */
  34.   NS_IMETHOD GetListStyle(nsAString & aListStyle) = 0;
  35.  
  36.   /* readonly attribute DOMString separator; */
  37.   NS_IMETHOD GetSeparator(nsAString & aSeparator) = 0;
  38.  
  39. };
  40.  
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMCOUNTER \
  43.   NS_IMETHOD GetIdentifier(nsAString & aIdentifier); \
  44.   NS_IMETHOD GetListStyle(nsAString & aListStyle); \
  45.   NS_IMETHOD GetSeparator(nsAString & aSeparator); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIDOMCOUNTER(_to) \
  49.   NS_IMETHOD GetIdentifier(nsAString & aIdentifier) { return _to GetIdentifier(aIdentifier); } \
  50.   NS_IMETHOD GetListStyle(nsAString & aListStyle) { return _to GetListStyle(aListStyle); } \
  51.   NS_IMETHOD GetSeparator(nsAString & aSeparator) { return _to GetSeparator(aSeparator); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSIDOMCOUNTER(_to) \
  55.   NS_IMETHOD GetIdentifier(nsAString & aIdentifier) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentifier(aIdentifier); } \
  56.   NS_IMETHOD GetListStyle(nsAString & aListStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListStyle(aListStyle); } \
  57.   NS_IMETHOD GetSeparator(nsAString & aSeparator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSeparator(aSeparator); } 
  58.  
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61.  
  62. /* Header file */
  63. class nsDOMCounter : public nsIDOMCounter
  64. {
  65. public:
  66.   NS_DECL_ISUPPORTS
  67.   NS_DECL_NSIDOMCOUNTER
  68.  
  69.   nsDOMCounter();
  70.  
  71. private:
  72.   ~nsDOMCounter();
  73.  
  74. protected:
  75.   /* additional members */
  76. };
  77.  
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMCounter, nsIDOMCounter)
  80.  
  81. nsDOMCounter::nsDOMCounter()
  82. {
  83.   /* member initializers and constructor code */
  84. }
  85.  
  86. nsDOMCounter::~nsDOMCounter()
  87. {
  88.   /* destructor code */
  89. }
  90.  
  91. /* readonly attribute DOMString identifier; */
  92. NS_IMETHODIMP nsDOMCounter::GetIdentifier(nsAString & aIdentifier)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* readonly attribute DOMString listStyle; */
  98. NS_IMETHODIMP nsDOMCounter::GetListStyle(nsAString & aListStyle)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* readonly attribute DOMString separator; */
  104. NS_IMETHODIMP nsDOMCounter::GetSeparator(nsAString & aSeparator)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* End of implementation class template. */
  110. #endif
  111.  
  112.  
  113. #endif /* __gen_nsIDOMCounter_h__ */
  114.